package com.java复习.练习二;


import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner myScanner = new Scanner(System.in);
        System.out.println("边：");
        int a = myScanner.nextInt();

        Ploygon ploygon1=new Ploygon(a);


        System.out.println("底边：");
        int base = myScanner.nextInt();
        System.out.println("高：");
        int height = myScanner.nextInt();
        System.out.println("面积为："+Triangle.getArea(base,height));

    }
}
